package com.zyy.dept.mapper;

import com.zyy.dept.entity.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author zyy
 * @since 2023-02-07
 */
@Mapper
public interface DeptMapper {

    /**
     * 查询
     *
     * @return
     */
    List<Dept> getAll();

    /**
     * 根据deptNo 查
     *
     * @param deptNo
     * @return
     */
    Dept getByNo(@Param("deptNo") long deptNo);


    /**
     * 添加
     *
     * @param dept
     * @return
     */
    Integer addDept(Dept dept);

}
